<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../../inc/global.jsp" 
%>
<!doctype html>
<html>
<head>
<title><fmt:message key="jsp.a.store.backtrack.list"/></title>
<%@include file="../head.jsp" %>
<style type="text/css">
table tr td ul li {height:30px; line-height:30px; display:block; border: solid 1px #ccc; 
	margin:0px 0px 2px 0px;
	padding: 0px 0px 0px 3px;}
.num {display:block; float:right; padding:0px 7px; margin-right:7px;}
table tr td{padding:7px 3px;}
table tr.slt { background:#d7d7d7;}
#ajaxData h2, #ajaxData h3{margin:10px 0px 21px 21px; padding:0px}
#ajaxData input[type=button] {margin:20px 0px 21px 21px;}
</style>
<script type="text/javascript" src="/static/backtrack.js"></script>
<script type="text/javascript">
var backtrack = new Backtrack();
</script> 
</head>
<body>
<div class="wrapper">
<%@include file="../header.jsp" %>
<div class="body">
<div class="list">
<table>
<thead>
<tr>
<th>退单号</th>
<th><fmt:message key="message.brand.name" />/<fmt:message key="message.category.name" />/<fmt:message key="message.goods.name" /></th>
<th>退货价格</th>
<th><fmt:message key="message.datetime" /></th>
<th>打印</th>
<th>取消</th>
</tr>
</thead>
<tbody>
<c:if test="${empty list}">
<tr>
<td></td>
<td></td>
<td>暂无记录...</td>
<td></td>
<td></td>
<td></td>
</tr>
</c:if>
<c:forEach var="item" items="${list}" varStatus="s">
<tr class='<c:if test="${s.index%2!=0}">slt</c:if>' id="tr_${item.id}">
<td>${item.id}</td>
<td>
<ul>
<c:forEach var="it" items="${item.items}">
<span class="num">${it.count}</span>
<li>${it.brand.name}${it.category.name}${it.goods.name}</li>
</c:forEach>
</ul>
<c:if test="${!empty item.memo}">
<span class="em">${item.memo}</span>
</c:if>
</td>
<td>${item.money}</td>
<td><fmt:formatDate pattern="yy-MM-dd hh:mm:ss" value="${item.addTime}" /></td>
<td><a href="###" onclick="javascript:backtrack.doPrint('${item.id}');">打印</a></td>
<td><a href="###" onclick="javascript:backtrack.cancelConfirm('${item.id}');">取消</a></td>
</tr>
</c:forEach>
</tbody>
</table>
${pagination}
</div>
<div class="sidebarMenu">
<ul>
<li><a href="/a/store/backtrack/form">退货单</a></li>
</ul>
</div>
<!--  -->
</div>
</div>
</body>
</html>